From 81e869fdc672d0d2126c0ad2e4338fb971b81b85 Mon Sep 17 00:00:00 2001 From: "tristan.gingold@bull.net" Date: Thu, 20 Oct 2005 06:01:11 -0400 Subject: [PATCH] Makes smp_call_function a real stmt if CONFIG_SMP is not defined. This avoid a GCC warning. --- xen/include/xen/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xen/smp.h b/xen/include/xen/smp.h index 57f7580ade..959657d856 100644 --- a/xen/include/xen/smp.h +++ b/xen/include/xen/smp.h @@ -90,7 +90,7 @@ void smp_prepare_boot_cpu(void); #define smp_processor_id() 0 #endif #define hard_smp_processor_id() 0 -#define smp_call_function(func,info,retry,wait) 0 +#define smp_call_function(func,info,retry,wait) do {} while (0) #define on_each_cpu(func,info,retry,wait) ({ func(info); 0; }) #define num_booting_cpus() 1 #define smp_prepare_boot_cpu() do {} while (0) -- 2.30.2